<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
	<?php 
	include_once("../DAO/DanhMucDAO.php");
	include_once("../DAO/DanhMucDTO.php");
	include_once("../DAO/DataHelper.php");
	?>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Thông tin shop</title>
		<link rel="stylesheet" href="../css/reset.css" type="text/css" />
		<link rel="stylesheet" href="../css/common.css" type="text/css" />
		<link rel="stylesheet" href="../css/seller.css" type="text/css" />
		<script src="../scripts/jquery-1.5.2.min.js"></script>
		<script src="../scripts/common.js"></script>
		<script type="text/javascript" src="CapNhat.js"></script>
		<script type="text/javascript" src="Them.js"></script>
		<script type="text/javascript" src="Xoa.js"></script>
		<link rel="stylesheet" href="css/MenuMatic.css" type="text/css" media="screen" charset="utf-8" />
		<link rel="stylesheet" href="css/MenuMatic2.css" type="text/css" media="screen" charset="utf-8" />
		
	</head>
	<body>
		<div id="page">
			<div id="subinfo">
				<div class="content">
					<table></tbody>
						<tr>
							<td class="phone">
								<p>Than phiền? Gọi 090-828-3489 (miễn cước)</p>
							</td>
							<td class="login">
								<ul>
									<li><span>Đăng nhập</span> | </li>
									<li><a href="#">Đăng ký</a></li>
								</ul>
							</td>					
						</tr>
					</tbody></table>
				</div>
			</div>
			<div id="banner">
				<div class="content">
					<form>
						<label for="username">Tên đăng nhập:</label>
						<input id="username" class="tb" type="text" />
						<label for="password">Mật khẩu:</label>
						<input id="password" class="tb" type="password" />					
						<input id="remember" type="checkbox" />
						<label for="remember">Ghi nhớ đăng nhập</label>
						<input type="submit" class="btn" value="Đăng nhập" />
						<div id="close">đóng</div>
					</form>
				</div>
			</div>
			<div id="seller-bar">
				
			</div>
			<div id="search">
				<div class="content">
					<form>
						<span>Tôi muốn tìm</span>
						<select>
							<option>sản phẩm</option>
							<option>gian hàng</option>
						</select>
						<span>có từ khóa là</span>
						<input class="tb" type="text" />
						<input class="btn" type="submit" value="Tìm kiếm">
						<span>hoặc</span>
						<a href="#">tìm nâng cao</a>
					</form>
				</div>
			</div>
			<div id="content">
				<div id="shop-banner">
					<img src="../temp/shop-banner.jpg" />
				</div>
				<div id="seller-func" class="block layout-2col-col1">
					<div class="title"><h4>Chức năng</h4></div>
					<ul class="content cat-menu">
						<li class="first"><a href="#">Thông tin cá nhân</a></li>
						<li><a href="#">Thông tin gian hàng</a></li>
						<li><a href="#">Danh sách sản phẩm</a></li>						
						<li><a href="#">Danh sách đơn hàng</a></li>
						<li class="last"><a href="#">Danh sách sự kiện</a></li>
					</ul>
				</div>
				<div id="seller-shop-info" class="block layout-2col-col2">
					<div class="title">
					  <h3>Quản lí danh mục </h3>
				  </div>
					<div class="content">
		
						
<?php	
	$listdanhmuc = DanhMucDAO::DanhMucSanPham();
	//$abc ='abc';
?>

<form method="post" action="quanly.php" name="QuanLiThuMuc" onSubmit="return false;">		
		<table border="0" align="center">
		<tr>
		  <td width="12%" align="left" bgcolor="#F2F2F2"><strong>Danh Mục Cha: </strong></td>
		  <td width="21%" bgcolor="#F2F2F2"><label>
			<select name='DanhMucCha' id="DanhMucCha" onchange="LayDanhMucCon(this.value)" style='width:385px' >
				<option value ='MucCha'>Chon Danh Muc</option> 
			  <?php
				if($listdanhmuc != null){
					foreach($listdanhmuc as $danhmuc)
					{
						echo "<option value = $danhmuc->dm_ma>$danhmuc->dm_ten</option>";
					}
				}
			 ?>	
			</select>
		  </label></td>
		</tr>
		</table>
		
		
		<div id ="HienThi">
		<?php
		echo '<table>';
		echo'	<tr>';
		echo'	  <td width="31%" align="left" bgcolor="#F2F2F2"><strong>Danh Muc Cap 1 : </strong></td>';
		echo'	  <td width="69%" bgcolor="#F2F2F2"><label>';
		echo'		<select name="DanhMucCon" id="DanhMucCon" style="width:385px" >';
				  echo '<option value ="MucCon1">Chon Danh Muc Con 1</option>';
		echo'	</select>';
		echo'	  </label></td>';
		echo'</tr>';
		echo'</table>';
		
		echo '<table>';
		echo'	<tr>';
		echo'	  <td width="31%" align="left" bgcolor="#F2F2F2"><strong>Danh Muc Cap 2 : </strong></td>';
		echo'	  <td width="69%" bgcolor="#F2F2F2"><label>';
		echo'		<select name="DanhMucCon1" id="DanhMucCon1" style="width:385px" >';
				  echo '<option value ="MucCon2">Chon Danh Muc Con 2</option>';
		echo'	</select>';
		echo'	  </label></td>';
		echo'</tr>';
		
		echo'<tr>';
		echo '<td width="31%" align="left"><strong>Danh Muc Dang Chon: </strong></td>';
		echo "<td width='69%'><input name='DanhMucDangChon'id='DanhMucDangChon' type='text'  value=''  size='70' style='width:380px' /></td>";
		echo'</tr>';
	echo'</table>';
		?>
		</div>
		
		
		<table width="90%" height="50" border="0" align="center">
		<tr>
		  <td align="center">
		  <input type="submit" value="Thêm mới" onClick='ThemMoi();' width="20px" />
		  
		  <input type="submit" value="Cập nhật" onClick="CapNhat();" width="20px" />
		  
		  <input type="submit" value="Xóa" onClick="Xoa()" width="20px" />
		   </td>
		</tr>
		</table>
		
	</form>

					</div>
				</div>
			</div>
			<div id="footer">
				<p>&copy; 2011 - Nhóm Ứng Dụng Phân Tán 1 - ĐHKHTN. All rights reserved.</p>
			</div>
		</div>
	</body>
</html>